package com.ych.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Alarm {
    private Integer id;
    private Sensor sensor;
    private Integer currentValue;
    private String alarmMsg;
    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private Date alarmTime;
    private Boolean isHandled;
}
